import net from "net";
import { TcpSocket } from "./TcpSocket";

/**
 * 封装的Tcp客户端
 */
export class TcpClient extends TcpSocket {

    constructor(port: number, host: string, onConncet: () => void) {
        super(net.connect(port, host, onConncet));
    }
}